var ClubRankingItem = Item.extend({
    _ccsFileName: res.ClubRankingItem_json,
    _rankResArr: [
        res.club_icon_first
        , res.club_icon_second
        , res.club_icon_third
    ],

    refreshData: function (idx, info, type) {
        if (idx == undefined) return;
        var isViewRankIcon = idx < 3;
        if (isViewRankIcon) {
            this._nodeList['rankIcon'].setTexture(this._rankResArr[idx]);
        } else {
            this._nodeList['rankLabel'].setString((idx + 1));
        }
        this._nodeList['rankLabel'].setVisible(!isViewRankIcon);
        this._nodeList['rankIcon'].setVisible(isViewRankIcon);
        this._nodeList['playerName'].setString(ellipsisStr(info['playerName'], ClubDataManager.NirckNameSize));
        this._nodeList['playerUid'].setString(info['playerId']);
        this._nodeList['numberLabel'].setString(info[type]);
        loadImageToSprite(info['headImg'], this._nodeList['head'], true);
    },
});
